﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_ThongTinKhachHang : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        XuLy xl = new XuLy();
        if (!IsPostBack)
        {

            DataTable query = xl.Load("select * from KhachHang where TenDN='" + Session["DangNhap"].ToString() + "'");
            txtSoDT.Text = Session["DangNhap"].ToString();
            string hoTen = Convert.ToString(query.Rows[0][1].ToString());// lay ho ten khach hàng ra
            txtHoTen.Text = hoTen;
               
           
        }
    }
    
    protected void btnNhapLai_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/TrangChu.aspx");
    }
    protected void btnDangKi_Click(object sender, EventArgs e)
    {

    }
}